import service from '@/utils/request'

// @Tags OsBanner
// @Summary 创建osBanner表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsBanner true "创建osBanner表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /osBanner/createOsBanner [post]
export const createOsBanner = (data) => {
  return service({
    url: '/osBanner/createOsBanner',
    method: 'post',
    data
  })
}

// @Tags OsBanner
// @Summary 删除osBanner表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsBanner true "删除osBanner表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /osBanner/deleteOsBanner [delete]
export const deleteOsBanner = (params) => {
  return service({
    url: '/osBanner/deleteOsBanner',
    method: 'delete',
    params
  })
}

// @Tags OsBanner
// @Summary 批量删除osBanner表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除osBanner表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /osBanner/deleteOsBanner [delete]
export const deleteOsBannerByIds = (params) => {
  return service({
    url: '/osBanner/deleteOsBannerByIds',
    method: 'delete',
    params
  })
}

// @Tags OsBanner
// @Summary 更新osBanner表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.OsBanner true "更新osBanner表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /osBanner/updateOsBanner [put]
export const updateOsBanner = (data) => {
  return service({
    url: '/osBanner/updateOsBanner',
    method: 'put',
    data
  })
}

// @Tags OsBanner
// @Summary 用id查询osBanner表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.OsBanner true "用id查询osBanner表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /osBanner/findOsBanner [get]
export const findOsBanner = (params) => {
  return service({
    url: '/osBanner/findOsBanner',
    method: 'get',
    params
  })
}

// @Tags OsBanner
// @Summary 分页获取osBanner表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取osBanner表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /osBanner/getOsBannerList [get]
export const getOsBannerList = (params) => {
  return service({
    url: '/osBanner/getOsBannerList',
    method: 'get',
    params
  })
}
